package com.xio.cloud.service;

import com.xio.cloud.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
* @Author: xio
* @Description: ${Description}
* @Date: 2021/3/31 20:55
*/
@FeignClient("seata-account-service")
public interface AccountService {

    @GetMapping("/account/decrease")
    CommonResult decrease(@RequestParam("userId") Long userId,
                          @RequestParam("money") BigDecimal money);

}
